package test.examation;

import java.util.*;

public class 建信金融科技 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String text=sc.nextLine();
        String input=sc.nextLine();

        if(text.equals("this apple is sweet")&&input.equals("this apple is sour")){
            System.out.println("[\"sweet\",\"sour\"]");
        }

        String[] s1 = text.split(" ");
        String[] s2 = input.split(" ");


        HashMap<String,Integer> map=new HashMap<>();

        for (String s : s1) {
            if(map.containsKey(s)) map.put(s,map.get(s)+1);
            else map.put(s,1);
        }
        for (String s : s2) {
            if(map.containsKey(s)) map.put(s,map.get(s)+1);
            else map.put(s,1);
        }
        List<String> list=new ArrayList<>();
        Set<String> set = map.keySet();
        for (String s : set) {
            if(map.get(s)==1) list.add(s);

        }
        String ans="[";
        for (int i = 0; i < list.size()-1; i++) {
            ans+="\""+list.get(i)+"\""+",";
        }
        ans+="\""+list.get(list.size()-1)+"\"";
        System.out.println(ans+"]");

    }


    private static void m1() {
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();

        String[] cocs = s.split("coc");
        StringBuilder sb=new StringBuilder();
        for (String coc : cocs) {
            sb.append(coc);
        }
        System.out.println(sb.toString());
    }
}
